import http from '../utils/axios'
//登录
export function grtLogin(query: any) {
  return http.request({
    url: '/login',
    method: 'post',
    data: query
  })
}
//获取字典
export function dictDetail(query: any) {
  return http.request({
    url: '/dict_detail/listByParent',
    method: 'post',
    data: query
  })
}
//获取字典（多个）
export function listByParentArr(query: any) {
  return http.request({
    url: '/dict_detail/listByParentArr',
    method: 'post',
    data: query
  })
}
//获取所有字典
export function dict_typeListAll(query: any) {
  return http.request({
    url: '/dict_type/listAll',
    method: 'post',
    data: query
  })
}
//个人信息
export function empGetUserData(query: any) {
  return http.request({
    url: '/emp/getUserData',
    method: 'post',
    data: query
  })
}
//认证密码跟邮箱
export function empValidCode(query: any) {
  return http.request({
    url: '/emp/validCode',
    method: 'post',
    data: query
  })
}
//发送邮箱验证码
export function empSendMail(query: any) {
  return http.request({
    url: '/emp/sendMail',
    method: 'post',
    data: query
  })
}
//修改密码
export function empResetKey(query: any) {
  return http.request({
    url: '/emp/resetKey',
    method: 'post',
    data: query
  })
}
//获取个人信息
export function empCenter(query: any) {
  return http.request({
    url: '/emp/center',
    method: 'post',
    data: query
  })
}
//修改个人头像
export function empHeadImg(query: any) {
  return http.request({
    url: '/emp/headImg',
    method: 'post',
    data: query
  })
}
//获取消息通知
export function mineMsg(query: any) {
  return http.request({
    url: '/msg_send_log/mineMsg',
    method: 'post',
    data: query
  })
}
//获取消息数量
export function msgReadNum(query: any) {
  return http.request({
    url: '/msg_send_log/msg/un/read/num',
    method: 'post',
    data: query
  })
}
//清空消息列表
export function msgClear(query: any) {
  return http.request({
    url: '/msg_send_log/msg/clear',
    method: 'post',
    data: query
  })
}
//一键已读消息
export function msgReadAll(query: any) {
  return http.request({
    url: '/msg_send_log/msg/read/all',
    method: 'post',
    data: query
  })
}
//删除单条信息
export function msgDel(query: any) {
  return http.request({
    url: '/msg_send_log/msg/del',
    method: 'post',
    data: query
  })
}
//阅读单条信息
export function readSingle(query: any) {
  return http.request({
    url: '/msg_send_log/msg/read/single',
    method: 'post',
    data: query
  })
}
//获取字典
export function dictDetailAll(query: any) {
  return http.request({
    url: '/dict_detail/listByType',
    method: 'post',
    data: query
  })
}
//退出登录
export function authLogout(query: any) {
  return http.request({
    url: '/auth/logout',
    method: 'post',
    data: query
  })
}
//退出登录
export function areaDatas(query: any) {
  return http.request({
    url: '/sys-config/area/datas',
    method: 'post',
    data: query
  })
}


